﻿using DAO;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyDoiTuong
{
    public partial class FrmManHinhChinh : Form
    {
        UserDAO userLogin = new UserDAO();
        public FrmManHinhChinh()
        {
            InitializeComponent();
        }
        public FrmManHinhChinh(UserDAO userLogin)
        {
            InitializeComponent();
            this.userLogin = userLogin;
        }
        private void btnFrmThemDoiTuong_Click(object sender, EventArgs e)
        {
            Form frmThemDoiTuong = new ThemDoiTuong(userLogin);
            frmThemDoiTuong.Show();
            this.Close();   
        }

        private void btnFrmQLDanhSachDoiTuong_Click(object sender, EventArgs e)
        {
            Form frmQLDanhSachDT = new QLDanhSachDoiTuong(userLogin);
            frmQLDanhSachDT.Show();
            this.Close();
        }

        private void btnFrmQuanLyLoaiDanhSach_Click(object sender, EventArgs e)
        {
            Form frmQLLoaiDanhSach = new QLLoaiDanhSach(userLogin);
            frmQLLoaiDanhSach.Show();
            this.Close();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            FrmLogin frmLogin = new FrmLogin();
            frmLogin.Show();
            this.Close();
        }

        private void btnFrmDoiMatKhau_Click(object sender, EventArgs e)
        {
            Form frmChangePass = new FrmChangePassWord(userLogin);
            frmChangePass.ShowDialog();
        }

    }
}
